public/io/netif.h: add gref mapping control messages
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 3 Oct 2017 17:46:08 +0000 (18:46 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 5 Oct 2017 13:27:07 +0000 (09:27 -0400)
commit30655e2bf0ce8ee50e61728e2558e0363f4af1c9
tree2300903ab0cecbf87d668f2b61eb70f9f110b89f
parent72b0c19a7040ab8446f16578b094fec8703f8095
public/io/netif.h: add gref mapping control messages

Adds 3 messages to allow guest to let backend keep grants mapped,
such that 1) guests allowing fast recycling of pages can avoid doing
grant ops for those cases, or otherwise 2) preferring copies over
grants and 3) always using a fixed set of pages for network I/O.

The three control ring messages added are:
 - Add grefs to be mapped by backend
 - Remove grefs mappings (If they are not in use)
 - Get maximum amount of grefs kept mapped.

Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
xen/include/public/io/netif.h